package com.tedu.bank_ems1.service.impl;

import com.tedu.bank_ems1.dao.EmpDao;
import com.tedu.bank_ems1.dao.impl.EmpDaoImpl;
import com.tedu.bank_ems1.entity.Emp;
import com.tedu.bank_ems1.service.EmpService;

import java.util.List;

/**
 * Author：毕龙
 * Date: 2024/6/25 10:03
 */
public class EmpServiceImpl implements EmpService {

    private EmpDao empDao = new EmpDaoImpl();

    @Override
    public List<Emp> listEmp() {
        return empDao.listEmp();
    }

    @Override
    public void insertEmp(Emp emp) {
        empDao.insertEmp(emp);
    }

    @Override
    public int deleteEmp(int id) {
        return empDao.deleteEmp(id);
    }

    @Override
    public Emp getEmp(int id) {
        return empDao.getEmp(id);
    }

    @Override
    public void updateEmp(Emp emp) {
        empDao.updateEmp(emp);
    }


}
